package com.example.springboot.service.imp;

import com.example.springboot.bean.Province;
import com.example.springboot.dao.CityMapper;
import com.example.springboot.dao.ProvinceMapper;
import com.example.springboot.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by tang on 2018/3/11.
 */
@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    ProvinceMapper provinceMapper;

    @Override
    public Province findByName(String name) {
        return provinceMapper.findByName(name);
    }
}
